# -*- coding: utf-8 -*-
"""
@Time    : 2024/6/28 10:53 
@Author  : ZhangShenao 
@File    : multi_inherit.py 
@Desc    : 多继承
Python中支持多继承,可以同时拥有多个类的属性和方法
"""


class Reader:
    def read(self):
        print("reading...")


class Writer:
    def write(self):
        print("writing...")


class Student(Reader, Writer):
    """
    多继承
    Python中支持多继承,可以同时拥有多个类的属性和方法
    """
    pass


if __name__ == '__main__':
    stu = Student()
    stu.read()
    stu.write()
